package com.wwfish.cmsui.modules.content.client;

import com.google.gwt.user.client.ui.TreeItem;
import com.nexustar.gwt.widgets.client.ui.tree.TreeItemUI;
import com.wwfish.cms.model.ChannelDto;
import com.wwfish.cms.model.NewsDto;

import java.util.Iterator;

/**
 * Created by IntelliJ IDEA.
 * User: Tom
 * Date: 2010-8-17
 * Time: 10:46:21
 * To change this template use File | Settings | File Templates.
 */
public class EditContentPage extends ContentPage {

    @Override
    protected void ddOutPageModel(Object o) {
        super.ddOutPageModel(o);
        channel.setVisible(false);
    }



//    private void parseTreeItem(TreeItem item, Long channelId) {
//        for (int i = 0; i < item.getChildCount(); i++) {
//            TreeItem child = item.getChild(i);
//            ChannelDto temp = (ChannelDto) child.getUserObject();
//            if (temp.getId().equals(channelId)) {
//                StringBuffer sb = new StringBuffer();
//                getAllChannelName(sb, item);
//                contentWidget.setTitle(sb.toString());
//            } else {
//                parseTreeItem(child, channelId);
//            }
//        }
//    }
}
